﻿#include "contactcustomerservice.h"
#include "ui_contactcustomerservice.h"

ContactCustomerService::ContactCustomerService(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ContactCustomerService)
{
    ui->setupUi(this);

    initWindowShow();
}

ContactCustomerService::~ContactCustomerService()
{
    delete ui;
}

void ContactCustomerService::initWindowShow()
{
    if (GlobalVars::g_localUser.getRole().toInt() == USER_User ||
            GlobalVars::g_localUser.getRole().toInt() == USER_Business)
    {
        qDebug() << "ContactCustomerService::initWindowShow  role" << GlobalVars::g_localUser.getRole().toInt();
        ui->lb_title1->close();
        ui->lwg_messageCount->close();
    }
}
